Method for Image Shooting, Terminal Device, and Storage Medium

ABSTRACT

Embodiments of the present disclosure relate to the field of electronics and provide a method for image shooting, an apparatus, a terminal device, and a storage medium. The method includes: shooting, via an image shooting component, a preview image and acquiring an exposure parameter of the preview image, when a terminal device is in a state of being ready for image shooting; obtaining an image shooting parameter for a present night scene via an image shooting parameter estimation model based on the preview image and the exposure parameter; performing, in response to receiving an image shooting instruction, image shoot processing based on the estimated image shooting parameter to obtain a target synthesized image.

CROSS-REFERENCE TO RELATED APPLICATION(S)

The present application is a continuation-application of International(PCT) Patent Application No. PCT/CN2018/114422, filed on Nov. 7, 2018,which claims priority to Chinese Patent Application No. 201711116498.8,filed on Nov. 13, 2017, the entire contents of both of which are herebyincorporated by reference in their entireties.

TECHNICAL FIELD

The present disclosure relates to the field of electronics, and inparticular to a method for image shooting a terminal device, and anon-transitory computer-readable storage medium.

BACKGROUND

As electronic technologies develop, terminal devices, such as mobilephones, computers, and the like, have been widely used. Varieties ofapplications installed in the terminal devices are increasing, and theapplications may have an increased number of functions. An applicationfor image shooting may be a commonly installed application, and a usermay activate the application to shoot an image.

SUMMARY

Embodiments of the present disclosure provide a method for imageshooting, a terminal device, and a non-transitory computer-readablestorage medium.

According to a first aspect of the present disclosure, a method forimage shooting may be provided and include: shooting preview images viaan image shooting component and acquiring values of an exposureparameter corresponding to the preview images, when the terminal deviceis in a pending state for image shooting; estimating a value of animage-shooting parameter of a present night scene via an estimationmodel according to the preview images and the values of theexposure-parameter corresponding to the preview images, wherein theestimation model is trained by taking an image data parameter, theexposure parameter, and the image shooting parameter as variables; andthe image shooting parameter comprises an image-synthesizing number,which is a number of preview images required to obtain a targetsynthesized-image; and performing an image-shooting process according tothe estimated value of the image-shooting parameter, in response to animage-shooting instruction, to obtain the target synthesized-image.

According to a second aspect of the present disclosure, a terminaldevice may be provided and include a processor and a non-transitorymemory. The non-transitory memory is arranged to store at least oneinstruction, at least one program, a code set, or an instruction set.The at least one instruction, the at least one program, the code set, orthe instruction set are loaded and executed by the processor to performoperations of: shooting, via an image shooting component, preview imagesand acquiring values of an exposure parameter corresponding to thepreview images, when the terminal device is in a pending state for imageshooting; estimating, via an estimation model, a value of animage-shooting parameter of a present night scene according to thepreview images and the values of the exposure parameter corresponding tothe preview images, wherein the estimation model is trained by taking animage data parameter, the exposure parameter, and the image shootingparameter as variables; and the image shooting parameter comprises animage-synthesizing number, which is a number of preview images requiredto obtain a target synthesized-image; and performing an image-shootingprocess according to the estimated value of the image-shootingparameter, in response to an image-shooting instruction, to obtain thetarget synthesized-image.

According to a third aspect of the present disclosure, a non-transitorycomputer-readable storage medium is provided and include at least oneinstruction, at least one program, a code set, or an instruction setstored in. The at least one instruction, the at least one program, thecode set, or the instruction set are capable of being loaded andexecuted by a processor to perform operations of: shooting previewimages and acquiring values of an exposure parameter corresponding tothe preview images; estimating a value of an image shooting parameter ofa present night scene via an estimation model based on the previewimages and the values of the exposure parameter corresponding to thepreview images, wherein the estimation model is trained by taking animage data parameter, the exposure parameter, and the image shootingparameter as variables, the image shooting parameter comprises animage-synthesizing number, which is a number of preview images requiredto obtain a target synthesized-image; and performing an image-shootingprocess according to the estimated value of the image-shootingparameter, in response to an image-shooting instruction, to obtain thetarget synthesized-image.

BRIEF DESCRIPTION OF DRAWINGS

In order to illustrate technical solutions of embodiments of the presentdisclosure in details, drawings required for illustrating theembodiments will be described in brief. Obviously, the followingdrawings illustrate only some embodiments of the present disclosure, andto any one of skill in the related art, other drawings may be obtainedbased on the following drawings without any creative work.

FIG. 1 is a flow chart of a method for image shooting according to anembodiment of the present disclosure.

FIG. 2 is a diagram of various predefined numbers of images forsynthesis corresponding to a set of target preview images according toan embodiment of the present disclosure.

FIG. 3 is a diagram of a predefined number of images for synthesiscorresponding to a plurality of predefined performance parameter valuesof a terminal device according to an embodiment of the presentdisclosure.

FIG. 4 is a structural view of an apparatus for image shooting accordingto an embodiment of the present disclosure.

FIG. 5 is a structural view of an apparatus for image shooting accordingto an embodiment of the present disclosure.

FIG. 6 is a structural view of a terminal device according to anembodiment of the present disclosure.

FIG. 7 is a structural view of a terminal device according to anembodiment of the present disclosure.

FIG. 8 is a structural view of a terminal device according to anembodiment of the present disclosure.

FIG. 9 is a structural view of a terminal device according to anembodiment of the present disclosure.

FIG. 10 is a structural view of a terminal device according to anembodiment of the present disclosure.

FIG. 11 is a structural view of a terminal device according to anembodiment of the present disclosure.

FIG. 12 is a structural view of a terminal device according to anembodiment of the present disclosure.

FIG. 13 is a structural view of a terminal device according to anembodiment of the present disclosure.

DETAILED DESCRIPTION

According to a first aspect of the present disclosure, a method forimage shooting may be provided and include: shooting preview images viaan image shooting component and acquiring values of an exposureparameter corresponding to the preview images, when the terminal deviceis in a pending state for image shooting; estimating a value of animage-shooting parameter of a present night scene via an estimationmodel according to the preview images and the values of theexposure-parameter corresponding to the preview images, wherein theestimation model is trained by taking an image data parameter, theexposure parameter, and the image shooting parameter as variables; andthe image shooting parameter comprises an image-synthesizing number,which is a number of preview images required to obtain a targetsynthesized-image; and performing an image-shooting process according tothe estimated value of the image-shooting parameter, in response to animage-shooting instruction, to obtain the target synthesized-image.

In some embodiments, the image-shooting parameter further includes aperformance parameter of the terminal device.

In some embodiments, before the estimating a value of an image-shootingparameter of a present night scene via an estimation model according tothe preview images and the values of the exposure-parametercorresponding to the preview images, the method further includes:training the estimation model based on a pre-stored correspondencerelationship among training preview images, values of a trainingexposure parameter, and values of a training image-shooting parameter ina training set, and by following a pre-stored training principle ofvalues of the image-shooting parameter estimated by the estimationmodel, being approached towards values of the training image-shootingparameter corresponding to the training preview images and the values ofthe training exposure parameter, to achieve the estimation model.

In some embodiments, the method further includes: shooting a predefinednumber of preview images via the image shooting component; determining atarget preview image among the predefined number of preview images andacquiring a target value of the exposure parameter corresponding to thetarget preview image; selecting a predefined synthesis number of previewimages comprising the target preview image from the predefined number ofpreview images to obtain a set of target preview images corresponding tothe predefined synthesis number, wherein a plurality of predefinedsynthesis numbers are pre-stored in the terminal device, and a pluralityof sets of target preview images corresponding to the plurality ofpredefined synthesis numbers are obtained according to each of theplurality of predefined synthesis numbers; performing an image-synthesisprocess for each of the plurality of sets of target preview images toobtain a synthesized image corresponding to the predefined synthesisnumber, such that a plurality of synthesized images corresponding to theplurality of predefined synthesis numbers are obtained; determining asynthesized image having optimal image quality from the plurality ofsynthesized images corresponding to the plurality of predefinedsynthesis numbers to be the target synthesized-image, and determining atarget predefined synthesis number corresponding to the targetsynthesized-image to be a target value of the image-shooting parameter;and storing the target preview image, the target value of the exposureparameter, and the target value of the image-shooting parameter into thetraining set correspondingly.

In some embodiments, the performing an image-synthesis process for eachof the plurality of sets of target preview images to obtain asynthesized image corresponding to the predefined synthesis numberincludes: performing the image-synthesis process to the set of targetpreview images based on each of a plurality of values of a performanceparameter of the terminal device to obtain a plurality of synthesizedimages corresponding to the predefined synthesis number and each of theplurality of values of the performance parameter of the terminal device.The determining a synthesized image having optimal image quality fromthe plurality of synthesized images corresponding to the plurality ofpredefined synthesis numbers to be the target synthesized-image, anddetermining a target predefined synthesis number corresponding to thetarget synthesized-image to be a target value of the image-shootingparameter includes: determining the target synthesized image having theoptimal image quality from the obtained plurality of synthesized images,wherein each of the plurality of synthesized images corresponds to eachof the plurality of predefined synthesis numbers and each of theplurality of values of the performance parameter, and determining thetarget predefined synthesis number and a target predefined value of theperformance parameter of the terminal device corresponding to the targetsynthesized image to be the target value of the image-shootingparameter.

In some embodiments, recording power consumption for obtaining thesynthesized image corresponding to the predefined synthesis number. Thedetermining a synthesized image having optimal image quality from theplurality of synthesized images corresponding to the plurality ofpredefined synthesis numbers to be the target synthesized-image, anddetermining a target predefined synthesis number corresponding to thetarget synthesized-image to be a target value of the image-shootingparameter includes: determining a synthesized image havingcomprehensively optimal image quality and power consumption among theplurality of synthesized images corresponding to the plurality ofpredefined synthesis numbers to be the target synthesized-image, anddetermining the target predefined synthesis number to be the targetvalue of the image-shooting parameter.

In some embodiments, the performing an image-shooting process accordingto the estimated value of the image-shooting parameter, in response toan image-shooting instruction, to obtain the target synthesized-imageincludes: acquiring a set of target preview images based on the targetpredefined synthesis number; and performing the image-synthesis processto the set of target preview images to obtain the targetsynthesized-image.

In some embodiments, the value of the image-shooting parameter comprisesa target value of the performance parameter of the terminal device, andthe performing the image-synthesis process to the set of target previewimages to obtain the target synthesized-image includes: performing theimage-synthesis process to the set of target preview images based on thetarget value of the performance parameter of the terminal device toobtain the target synthesized-image.

In some embodiments, before the shooting preview images via an imageshooting component and acquiring values of an exposure parametercorresponding to the preview images, the method further includes:detecting whether a present time stamp is within a predefined timerange; and performing, in response to the present time stamp beingwithin the predefined time range, the shooting preview images via animage shooting component and acquiring values of an exposure parametercorresponding to the preview images.

According to a second aspect of the present disclosure, a terminaldevice may be provided and include a processor and a non-transitorymemory. The non-transitory memory is arranged to store at least oneinstruction, at least one program, a code set, or an instruction set.The at least one instruction, the at least one program, the code set, orthe instruction set are loaded and executed by the processor to performoperations of: shooting, via an image shooting component, preview imagesand acquiring values of an exposure parameter corresponding to thepreview images, when the terminal device is in a pending state for imageshooting; estimating, via an estimation model, a value of animage-shooting parameter of a present night scene according to thepreview images and the values of the exposure parameter corresponding tothe preview images, wherein the estimation model is trained by taking animage data parameter, the exposure parameter, and the image shootingparameter as variables; and the image shooting parameter comprises animage-synthesizing number, which is a number of preview images requiredto obtain a target synthesized-image; and performing an image-shootingprocess according to the estimated value of the image-shootingparameter, in response to an image-shooting instruction, to obtain thetarget synthesized-image.

In some embodiments, the image shooting parameter further includes aperformance parameter of the terminal device.

In some embodiments, the at least one instruction, the at least oneprogram, the code set, or the instruction set are further loaded andexecuted by the processor to perform operations of: training theestimation model based on a pre-stored correspondence relationship amongtraining preview images, values of a training exposure parameter, andvalues of a training image-shooting parameter in a training set, and byfollowing a pre-stored training principle of values of theimage-shooting parameter estimated by the estimation model, beingapproached towards values of the training image-shooting parametercorresponding to the training preview images and the values of thetraining exposure parameter, to achieve the estimation model.

In some embodiments, the at least one instruction, the at least oneprogram, the code set, or the instruction set are further loaded andexecuted by the processor to perform operations of: shooting, via theimage shooting component, a predefined number of preview images;determining a target preview image from the predefined number of previewimages and acquire a target value of the exposure parametercorresponding to the target preview image; selecting a predefinedsynthesis number of preview images comprising the target preview imagefrom the predefined number of preview images to obtain a set of targetpreview images corresponding to the predefined synthesis number; andperforming an image synthesis process to the set of target previewimages to obtain a synthesized image corresponding to the predefinedsynthesis number, wherein a plurality of predefined synthesis numbersare stored in the terminal device, a plurality of sets of target previewimages corresponding to the plurality of predefined synthesis numbersare obtained, and a plurality of synthesized images corresponding to theplurality of predefined synthesis numbers are obtained; determining asynthesized image having optimal image quality from the plurality ofsynthesized images corresponding to the plurality of predefinedsynthesis numbers to be the target synthesized-image, and determining atarget predefined synthesis number corresponding to the targetsynthesized image to be a target value of the image shooting parameter;and storing the target preview image, the target value of the exposureparameter, the target value of the image shooting parameter into thetraining set correspondingly.

In some embodiments, the at least one instruction, the at least oneprogram, the code set, or the instruction set are further loaded andexecuted by the processor to perform operations of: performing theimage-synthesis process to the set of target preview images, based oneach of a plurality of predefined values of a performance parameter ofthe terminal device, to obtain a synthesized image corresponding to thepredefined synthesis number and each of the plurality of predefinedvalues of the performance parameter of the terminal device, wherein aplurality of synthesized images are obtained corresponding to theplurality of predefined synthesis numbers and the plurality ofpredefined values of the performance parameter of the terminal device;and determining the target synthesized image having the optimal imagequality from the obtained plurality of synthesized images correspondingto the plurality of predefined synthesis numbers and the plurality ofpredefined values of the performance parameter of the terminal device,and determining the target predefined synthesis number and a targetpredefined value of the performance parameter of the terminal devicecorresponding to the target synthesized image to be target values of theimage shooting parameter.

In some embodiments, the at least one instruction, the at least oneprogram, the code set, or the instruction set are further loaded andexecuted by the processor to perform operations of: recording powerconsumption for obtaining each of the plurality of synthesized imagescorresponding to each of the plurality of predefined synthesis numbers;and determining a synthesized image having comprehensively optimal imagequality and the power consumption from the plurality of synthesizedimages corresponding to the plurality of predefined synthesis numbers tobe the target synthesized image, and determining the target predefinedsynthesis number corresponding to the target synthesized image to be thetarget value of the image shooting parameter.

In some embodiments, the value of the image shooting parameter comprisesthe target predefined synthesis number, and the at least oneinstruction, the at least one program, the code set, or the instructionset are further loaded and executed by the processor to performoperations of: obtaining the set of preview images based on the targetpredefined synthesis number, and performing the image-synthesis processto the set of target preview images to obtain the target synthesizedimage.

In some embodiments, the value of the image shooting parameter comprisesa target value of the performance parameter of the terminal device, andthe at least one instruction, the at least one program, the code set, orthe instruction set are further loaded and executed by the processor toperform operations of: performing the image-synthesis process to the setof target preview images, based on the target value of the predefinedperformance parameter of the terminal device, to obtain the targetsynthesized image.

In some embodiments, the at least one instruction, the at least oneprogram, the code set, or the instruction set are further loaded andexecuted by the processor to perform operations of: detecting whether apresent time stamp is within a predefined time range; and shooting, viathe image shooting component, the preview images and acquiring thevalues of the exposure parameter corresponding to the preview images, inresponse to the present time stamp being within the predefined timerange.

According to a third aspect of the present disclosure, a non-transitorycomputer-readable storage medium is provided and include at least oneinstruction, at least one program, a code set, or an instruction setstored in. The at least one instruction, the at least one program, thecode set, or the instruction set are capable of being loaded andexecuted by a processor to perform operations of: shooting previewimages and acquiring values of an exposure parameter corresponding tothe preview images; estimating a value of an image shooting parameter ofa present night scene via an estimation model based on the previewimages and the values of the exposure parameter corresponding to thepreview images, wherein the estimation model is trained by taking animage data parameter, the exposure parameter, and the image shootingparameter as variables, the image shooting parameter comprises animage-synthesizing number, which is a number of preview images requiredto obtain a target synthesized-image; and performing an image-shootingprocess according to the estimated value of the image-shootingparameter, in response to an image-shooting instruction, to obtain thetarget synthesized-image.

In some embodiments, the at least one instruction, the at least oneprogram, the code set, or the instruction set are further capable ofbeing loaded and executed by a processor to perform operations of:training the estimation model based on a pre-stored correspondencerelationship among training preview images, values of a trainingexposure parameter, and values of a training image-shooting parameter ina training set, and by following a pre-stored training principle ofvalues of the image-shooting parameter estimated by the estimationmodel, being approached towards values of the training image-shootingparameter corresponding to the training preview images and the values ofthe training exposure parameter, to achieve the estimation model.

Implementations of the present disclosure may further be described indetails by referring to the drawings in order to illustrate technicalsolutions and objectives of the present disclosure clearly.

Embodiments of the present disclosure may provide a method for imageshooting, and the method may be performed by a terminal device. Theterminal device may be a terminal device having a function of imageshooting, such as a terminal device installed with an application ofimage shooting. The terminal device may include components such as aprocessor, a non-transitory memory, an image shooting component, adisplay screen, and the like. The processor may be a central processingunit (CPU) or the like, and may be arranged to determine an imageshooting parameter value and perform a process related to imageshooting. The non-transitory memory may be a random access memory (RAM),a flash memory, and the like, and may be arranged to store receiveddata, data required during performing the process, data generated duringperforming the process, and the like, such as an estimation model thatis able to estimate an image shooting parameter value. The imageshooting component may be a camera, and may be arranged to acquire apreview image. The display screen may be a touch screen, and may bearranged to display the preview image acquired by the image shootingcomponent and to detect a touch signal.

In the related art, when a user activates the application of imageshooting, the application of image shooting may provide a function ofnight scene synthesis to allow the user to shoot an image in a nightscene. Specifically, when the user intends to shoot an image in a nightscene, the user may find a click to activate or deactivate the functionof night scene synthesis. By pressing the click, the function of nightscene synthesis may be activated, and when the user press a click forimage shooting, the terminal device may perform image shooting andprocessing based on a predefined number of images for image synthesis.Specifically, the terminal device may acquire the predefined number ofimages for image synthesis consecutively via the image shootingcomponent (such as the camera). The acquired predefined number of imagesmay be referred as preview images, and the acquired predefined number ofimages for image synthesis may be processed to obtain a synthesizedimage, and that is, an image synthesized from a plurality of previewimages may be obtained, and the synthesized image may be stored in agallery of the terminal device. In such a way, whenever the user intendsto shoot an image in a night scene, the click to activate the functionof night scene synthesis needs to be found and clicked manually,reducing an efficiency of image shooting.

As shown in FIG. 1, a flow chart of a method for image shootingaccording to an embodiment of the present disclosure is provided. Themethod may include following operations.

At an operation of 101, a terminal device may be in a pending state forimage shooting, a preview image may be acquired via an image shootingcomponent, and an exposure parameter value corresponding to the previewimage may be acquired.

The pending state for image shooting may refer to the terminal devicedisplaying an interface for image shooting. The image shooting componentmay be a camera of the terminal device. The preview image may be animage displayed in the terminal device acquired by the image shootingcomponent, and that is an image prior to image synthesis. That is, thepreview image may be an image acquired by the image shooting componentbefore the user pressing a click for image capturing. The exposureparameter value corresponding to the preview image may be an exposureparameter value determined during shooting the preview image, and mayinclude exposure duration, white balance, and the like. The exposureparameter value may be arranged to identify a night scene, that is,various exposure parameter values may identify various night scenes.

Alternatively, the terminal device may be installed with an applicationof image shooting. When the user intends to shoot an image, an icon ofthe application may be clicked, and the terminal device may receive anactivation instruction correspondingly, such that the application ofimage shooting may be activated, and at this moment, the terminal devicemay be in the pending state for image shooting.

When the terminal device is in the pending state for image shooting, theterminal device may shoot the preview image via the image shootingcomponent. Further, after the application of image shooting isactivated, the terminal device may determine the exposure parametervalue (the exposure parameter value may include the exposure duration,the white balance, and the like) at real time based on brightness of anenvironment and a color of a light source in the environment, such thatthe terminal device may perform image shooting and processing based onthe exposure parameter value.

In addition, a predefined period for image shooting may be set in theterminal device. When the terminal device is in the pending state forimage shooting, the terminal device may shoot the preview image via theimage shooting component and acquire the exposure parameter valuecorresponding to the preview image in response to the predefined periodfor image shooting being met. Further, a predefined time range may bestored in the terminal device. The predefined time range may be a timerange corresponding to night scenes, such as from 5 pm to 12 am, andfrom 12 am to 6 am. In response to a present time point being within thepredefined time range, when the terminal device is in the pending statefor image shooting, the preview image may be acquired via the imageshooting component, and the exposure parameter value corresponding tothe preview image may be acquired.

At an operation of 102, an image shooting parameter value of a presentnight scene may be acquired via an estimation model based on the previewimage and the exposure parameter value corresponding to the previewimage.

The estimation model may be obtained by training, and during thetraining, an image data parameter, the exposure parameter, and the imageshooting parameter may be taken as variables. In the present embodiment,the terminal device may set the preview image as a value of the imagedata parameter, and the exposure parameter value corresponding to thepreview image may be determined as a value of the exposure parameter fortraining. The image shooting parameter may include the number of imagesfor image synthesis, and the number of images for image synthesis may bereferred as an image-synthesizing number. The image-synthesizing numbermay refer to the number of preview images required to obtain a targetsynthesized image. Alternatively, the image shooting parameter mayfurther include a performance parameter of the terminal device. Theperformance parameter of the terminal device may be a parameter able toaffect a capability of the terminal device, such as an operatingfrequency of a central processing unit (also termed as a CPU dominantfrequency).

The image shooting parameter value may refer to a value of the imageshooting parameter required to obtain the target synthesized image. Whenthe image shooting parameter includes the image-synthesizing number, theimage shooting parameter value may include a value of theimage-synthesizing number, and will be referred as a target predefinedsynthesis number hereafter. When the image shooting parameter includesthe performance parameter of the terminal device, the image shootingparameter value may include a value of the performance parameter of theterminal device, and will be referred as a target predefined performanceparameter value of the terminal device. During implementation, theterminal device may store the estimation model in advance, and theestimation model is trained in advance. The estimation model may bearranged to estimate the image shooting parameter value of the presentnight scene based on the preview image acquired at present and theexposure parameter value corresponding to the preview image. After aplurality of preview images and a plurality of exposure parameter valuescorresponding to the plurality of preview images are acquired, each ofthe plurality of preview images and each of the plurality of exposureparameter values may be input into the estimation model trained inadvance, and an output of the estimation model may be obtained, and theimage shooting parameter value of the present night scene may beobtained. To be specific, after the preview image and the exposureparameter value corresponding to the preview image are acquired, theterminal device may take the preview image as the value of the imagedata parameter for training, and take the exposure parameter valuecorresponding to the preview image as the value of the exposureparameter for training. The values may be input into the estimationmodel to obtain the image shooting parameter value for the present nightscene.

At an operation of 103, in response to receiving an image shootinginstruction, an image-shooting process may be performed based on theestimated image shooting parameter value to obtain the targetsynthesized image.

The image shooting instruction may be triggered by the user. When theuser intends to shoot the image, the user may click an image shootingcontrol, and the terminal device may receive the image shootinginstruction.

When the image shooting parameter includes the image-synthesizingnumber, the image shooting parameter value may include the targetpredefined synthesis number (i.e., the target predefined number ofimages for image synthesis). The operation of 103 may be achieved by:acquiring a set of target preview images based on the target predefinedsynthesis number; performing the image-synthesis process to the set oftarget preview images to obtain the target synthesized image.Specifically, the terminal device may consecutively shoot an estimatednumber of preview images for image synthesis, and perform imagesynthesis to the acquired target predefined number of images for imagesynthesis to obtain the target synthesized image. The target synthesizedimage may be stored in a gallery of the terminal device.

When the image shooting parameter includes the image-synthesizing numberand the performance parameter of the terminal device, the image shootingparameter value may include the target predefined synthesis number andthe target predefined performance parameter value of the terminaldevice. The operation of 103 may be achieved by: acquiring a set oftarget preview images based on the target predefined synthesis number;performing the image-synthesis process to the set of target previewimages based on the target predefined performance parameter value of theterminal device to obtain the target synthesized image. When the imageshooting parameter includes the image-synthesizing number and theperformance parameter of the terminal device, the terminal device mayconsecutively shoot an estimated number of preview images for imagesynthesis, and may set the performance parameter of the terminal deviceas an estimated performance parameter of the terminal device. Further,based on the estimated performance parameter of the terminal device,image synthesis may be performed to the number of preview images forimage synthesis acquired by the terminal device (image synthesis may beachieved by performing an algorithm to synthesize an image of a nightscene, and the algorithm may be available in the related art) to obtainthe target synthesized image. The target synthesized image may be storedin the gallery of the terminal device.

Further, referring to the operation of 101, in response to thepredefined period being met, under the situation of shooting the previewimage via the image shooting component and acquiring the exposureparameter corresponding to the preview image, the operation of 102 maybe performed once after each preview image is acquired in order todetermine the image shooting parameter value of the present night scene(i.e., corresponding to a present acquisition period). In the presentshooting period, the terminal device may perform image shooting andprocessing based on the estimated image shooting parameter valuecorresponding to the present shooting period in response to each imageshooting instruction.

According to the present disclosure, when the terminal device is in thepending state for image shooting, the terminal device may shoot thepreview image via the image shooting component and acquire the exposureparameter corresponding to the preview image. The image shootingparameter value of the present night scene may be estimated by theestimation model based on the preview image. The estimation model may betrained in advance by taking the image data parameter, the exposureparameter, and the image shooting parameter as variables. The imageshooting parameter may include the number of images for synthesis. Inresponse to receiving the image shooting instruction, the terminaldevice may perform image shooting and processing based on the estimatedimage shooting parameter value. In such a way, when the user intends toshoot an image at a night scene, the terminal device may automaticallycalculate the number of images for image synthesis (i.e., theimage-synthesizing number) for the present night scene, and may performimage shooting and processing based on the number of images forsynthesis. The user may not need to manually activate the function ofnight scene synthesis, improving the efficiency of image shooting.

Prior to the estimation model acquiring the image shooting parametervalue of the present night scene, the estimation model is required to betrained. On the basis of an available embodiment according to theembodiment shown in FIG. 1, prior to the operation of 102, the methodfor image shooting may further include following operations.

The estimation model may be trained by following a training principleand based on a correspondence relationship. The correspondencerelationship may be correspondence among the preview image, the exposureparameter value, and the image shooting parameter value, wherein thepreview image, the exposure parameter value, and the image shootingparameter value are stored in the training set in advance. The trainingprinciple may be approaching the image shooting parameter valueestimated by the estimation model towards the image shooting parametervalue corresponding to the preview image and the exposure parameter,wherein the image shooting parameter value corresponding to the previewimage and the exposure parameter value may be stored in the terminaldevice in advance. A trained estimation model may be obtained and maytake the image data parameter, the exposure parameter, and the imageshooting parameter as variables.

During implementation, the terminal device may store the training set,and the training set may include a correspondence relationship amongeach preview image, each exposure parameter value, and each imageshooting parameter value. As a plurality of preview images may beacquired, a plurality of exposure parameter values and a plurality ofimage shooting parameter values may be acquired, and a plurality ofcorrespondence relationships may be generated and included in thetraining set. For each of the plurality of correspondence relationships,the image shooting parameter value may be a value of the image shootingparameter allowing the synthesized image to have optimal image qualityunder a situation of the preview image and the exposure parameter beingexpressed. The terminal device may train the estimation model based onthe stored training set, wherein the image shooting parameter estimationmodel may include a parameter value to be determined. That is, theterminal device may train the estimation model by following the trainingprinciple, wherein the training principle may be approaching the imageshooting parameter value estimated by the estimation model towards theimage shooting parameter value stored in the terminal device in advance,and the image shooting parameter value may correspond to the previewimage and the exposure parameter value. Specifically, the terminaldevice may input the preview image and the exposure parameter value ofeach correspondence relationship into the estimation model including theparameter value to be determined to obtain an image shooting parameterwith a value to be determined. Further, a target function may beobtained by following the training principle, wherein the trainingprinciple may be approaching the image shooting parameter value with thevalue to be determined towards the image shooting parameter value of thecorrespondence relationship. For example, the target function may be afunction of subtracting the image shooting parameter value of thecorrespondence relationship from the obtained image shooting parametervalue. After the target function is obtained, a training value of theparameter may be obtained by performing a gradient descent method, andthe training value may be taken as a value corresponding to theparameter having a value to be determined when training based on a nextcorrespondence relationship. Similarly, after the training is completed,the training value of the parameter having a value to be determined maybe determined. Further, the above-mentioned estimation model may be aconvolutional neural network model, and under such a situation, theparameter value to be determined may be each convolutional kernel of theconvolutional neural network model.

Alternatively, each of the plurality of correspondence relationships maybe selected based on quality of the synthesized image. Specifically, apredefined number of preview images may be acquired by the imageshooting component. A target preview image may be determined among theacquired preview images, and a target exposure parameter correspondingto the target preview image may be acquired. A plurality of predefinedsynthesis numbers may be stored in the terminal device. Preview imagesincluding the target preview image and corresponding to each predefinedsynthesis number may be selected from the predefined number of previewimages, and a set of target preview images corresponding to eachpredefined synthesis number may be obtained. Therefore, a plurality ofsets of target preview images corresponding to the plurality ofpredefined synthesis numbers are obtained. Image synthesis may beperformed to each set of target preview images, and a synthesized imagecorresponding to each predefined synthesis number may be obtained.Therefore, a plurality of synthesized images corresponding to theplurality of predefined synthesis numbers may be obtained. A targetsynthesized image having optimal image quality may be determined amongthe plurality of synthesized images corresponding to the plurality ofpredefined synthesis numbers, and a target predefined synthesis numbercorresponding to the target synthesized image may be determined as thetarget image shooting parameter value. The target preview image, thetarget exposure parameter value, and the target image shooting parametervalue may be stored into the training set correspondingly.

During implementation, each of the plurality of correspondencerelationships may be determined based on the predefined number ofpreview images acquired by the terminal device. Various night scenes(such as at various time points) may correspond to various predefinednumbers of preview images, the terminal device may shoot the variouspredefined numbers of preview images, and various correspondencerelationships may be determined based on the various predefined numbersof preview images acquired. For example, a first correspondencerelationship may be determined based on the predefined number of previewimages acquired at 19:00 by the terminal device, and a secondcorrespondence relationship may be determined based on the predefinednumber of preview images acquired at 19:20 by the terminal device. Aprocess of determining a certain correspondence relationship will beillustrated in details hereafter, and other correspondence relationshipsmay be determined in a same manner.

Specifically, in a night scene, the terminal device may consecutivelyshoot the predefined number of preview images via the image shootingcomponent. The preview images may be acquired directly by the imageshooting component and may not be processed for image synthesis or anyother purpose. Further, one preview image may be selected from theacquired predefined number of preview images to be the target previewimage, and the exposure parameter value corresponding to the targetpreview image (referred as the target exposure parameter value) may beacquired. After the target preview image is selected, the predefinedsynthesis number of preview images including the target preview imagemay be selected from the acquired predefined number of preview images,and a set of target preview images corresponding to the predefinedsynthesis number may be obtained. The terminal device may store aplurality of predefined synthesis numbers. Therefore, a plurality ofsets of target preview images corresponding to the plurality ofpredefined synthesis numbers may be obtained. For example, as shown inFIG. 2, the terminal device may shoot 3 preview images, a preview image1, a preview image 2, and a preview image 3. The first preview image,i.e., the preview image 1, may be selected to be the target previewimage. The plurality of predefined synthesis numbers may be 1, 2, and 3,i.e., 3 predefined synthesis numbers are stored in the terminal device.When the predefined synthesis number is 1, the terminal device mayselect the preview image 1 to obtain a set of target preview imagescorresponding to the predefined synthesis number being 1. When thepredefined synthesis number is 2, the terminal device may select thepreview image 1 and the preview image 2 to obtain a set of targetpreview images corresponding to the predefined synthesis number being 2.When the predefined synthesis number is 3, the terminal device mayselect the preview image 1, the preview image 2, and the preview image 3to obtain a set of target preview images corresponding to the predefinedsynthesis number being 3. Therefore, 3 sets of target preview imagescorresponding to 3 predefined synthesis numbers are obtained.

After the set of target preview images of each predefined synthesisnumber is obtained, image synthesis may be performed to the set oftarget preview images, and that is, image synthesis may be performed tothe target preview images in the set to obtain the synthesized imagecorresponding to each predefined synthesis number. As a plurality ofpredefined synthesis numbers are stored, a plurality of synthesizedimages corresponding to the plurality of predefined synthesis numbersare obtained. After the plurality of synthesized images corresponding tothe plurality of predefined synthesis numbers are obtained, imagequality (such as image definition) of each of the plurality ofsynthesized images may be calculated. A synthesized image having theoptimal image quality (referred as a target synthesized image) among theplurality of synthesized images may be determined, and the predefinedsynthesis number corresponding to the target synthesized image may bedetermined and referred as a target predefined synthesis number. Afterthe target predefined synthesis number is determined, the targetpredefined synthesis number may further be determined as the targetimage shooting parameter value. The target preview image, the targetexposure parameter value, and the target image shooting parameter valuemay be determined and subsequently stored into the training setcorrespondingly. The target preview image, the target exposure parametervalue, and the target image shooting parameter value corresponding toanother time point may be obtained by the terminal device by followingthe above-mentioned process similarly, in such a way, eachcorrespondence relationship in the training set may be obtained.

Alternatively, the image shooting parameter may further include theperformance parameter of the terminal device. The number of images forimage synthesis corresponding to the preview image and the exposureparameter, and the performance parameter of the terminal devicecorresponding to the preview image and the exposure parameter may bedetermined during determining the training set. The terminal device mayperform operations of: performing image synthesis to the set of thetarget preview image based on a plurality of performance parametervalues of the terminal device to obtain a synthesized imagecorresponding to the predefined synthesis number and each of theplurality of performance parameter values of the terminal device. As aplurality of predefined synthesis numbers are stored, a plurality ofsynthesized images corresponding to the plurality of predefinedsynthesis numbers and the plurality of performance parameter values ofthe terminal device may be obtained. Accordingly, the terminal devicemay further perform operations of: determining the target synthesizedimage having the optimal image quality among the plurality ofsynthesized images corresponding to the plurality of predefinedsynthesis numbers and the plurality of performance parameter values ofthe terminal device; and determining the target predefined synthesisnumber and a target performance parameter value of the terminal devicecorresponding to the target synthesized image to be the target imageshooting parameter value.

During implementation, the terminal device may store a plurality ofperformance parameter values. In a situation of the image shootingparameter including the performance parameter of the terminal device, aplurality of sets of target preview images corresponding to theplurality of predefined synthesis numbers may be determined, and theterminal device may subsequently perform image synthesis to theplurality of sets of target preview images based on the plurality ofperformance parameter values of the terminal device respectively toobtain a plurality of synthesized images corresponding to the predefinedsynthesis number and the plurality of predefined performance parametervalues of the terminal device. That is, each predefined synthesis numberand each performance parameter may correspond to one of the plurality ofsynthesized images, and that is, the number of obtained synthesizedimages corresponding to the plurality of predefined synthesis numbersand the plurality of predefined performance parameter values of theterminal device may equal to the number of the predefined synthesisnumbers multiplied by the number of the plurality of performanceparameter values of the terminal device. For example, as shown in FIG.3, the predefined synthesis number is 2, i.e., the number of thepredefined synthesis numbers is 1, and the plurality of performanceparameter values of the terminal device may include a value of a and avalue of b, i.e., the number of the plurality of performance parametervalues is 2. In the set of target preview images corresponding to thepredefined synthesis number being equal to 2, the terminal device mayperform image synthesis to the set of target preview images, in responseto the performance parameter value of the terminal device being a (i.e.,the terminal device may set the performance parameter of the terminaldevice to be a), to obtain a synthesized image corresponding to thepredefined synthesis number being 2 and the performance parameter valueof the terminal device being a. The terminal device may perform imagesynthesis to the set of target preview images, in response to theperformance parameter of the terminal device being b, to obtain asynthesized image corresponding to the predefined synthesis number being2 and the performance parameter of the terminal device being b.Therefore, 2 (i.e., equal to 1 multiplied by 2) synthesized images areobtained.

After the plurality of synthesized images corresponding to the pluralityof predefined synthesis numbers and the plurality of predefinedperformance parameters of the terminal device are obtained, imagequality of each of the plurality of synthesized images may becalculated. Among the plurality of synthesized images, the targetsynthesized image having the optimal image quality may be determined.Further, the target predefined synthesis number and the targetpredefined performance parameter value of the terminal devicecorresponding to the target synthesized image may be determined to bethe target image shooting parameter value. Three parameter values (i.e.,the target preview image, the target exposure parameter value, and thetarget image shooting parameter value) may be stored into the trainingset correspondingly.

Alternatively, the terminal device may record power consumption forperforming image synthesis to each set of target preview images.Accordingly, the terminal device may perform following operations todetermine the target image shooting parameter value. The terminal devicemay record the power consumption for obtaining each synthesized imagecorresponding to each predefined synthesis number. The targetsynthesized image having comprehensively optimal image quality and powerconsumption may be determined among the plurality of synthesized imagescorresponding to the plurality of predefined synthesis numbers, and thetarget predefined synthesis number corresponding to the targetsynthesized image may be determined to be the target image shootingparameter value.

During implementation, after the set of target preview imagescorresponding to each of the plurality of predefined synthesis numbersis obtained, image synthesis may be performed to the set of targetpreview images, the plurality of synthesized images corresponding to theplurality of predefined synthesis numbers may be obtained, and the powerconsumption for performing image synthesis may be recorded. That is, thepower consumption for obtaining each synthesized image corresponding toeach predefined synthesis number may be recorded. The power consumptionmay include one or more of: a consumed battery level and duration spentfor image synthesis. In such a situation, after the plurality ofsynthesized images corresponding to the plurality of predefinedsynthesis numbers and the power consumption corresponding to theplurality of predefined synthesis numbers are obtained, the terminaldevice may determine the target synthesized image having comprehensivelyoptimal image quality and power consumption among the plurality ofsynthesized images (a synthesized image having a greatest quotient ofthe image quality to the power consumption may be determined to be thetarget synthesized image). The target predefined synthesis numbercorresponding to the target synthesized image may be determined to bethe target image shooting parameter value.

An apparatus embodiment of the present disclosure will be describedhereafter, and may be arranged to perform the method embodiments of thepresent disclosure. Details that are not illustrated in the apparatusembodiment may be referred to the method embodiments of the presentdisclosure.

As shown in FIG. 4, a diagram of an image shooting apparatus accordingto an embodiment of the present disclosure is provided. The apparatusmay have a function of performing the method as described in the aboveembodiments, and the function may be realized by hardware or by hardwareexecuting corresponding software. The apparatus may include followingmodules. A first acquisition module 410 of the present disclosure may bearranged to allow an image shooting component to shoot a preview imageand may be arranged to acquire an exposure parameter value correspondingto the preview image, when the terminal device is in a pending state forimage shooting.

An estimation module 420 may be arranged to obtain an image shootingparameter value of a present night scene via an estimation model basedon the preview image and the exposure parameter corresponding to thepreview image. The estimation model may be trained by taking an imagedata parameter, the exposure parameter, and the image shooting parameteras variables. The image shooting parameter may include theimage-synthesizing number, which indicates the number of preview imagesrequired to obtain a target synthesized image.

An execution module 430 may be arranged to perform an image-shootingprocess, in response to receiving an image shooting instruction, basedon the image shooting parameter, to obtain the target synthesized image.

Alternatively, the image shooting parameter may include a performanceparameter of the terminal device.

Alternatively, as shown in FIG. 5, the apparatus may further includefollowing modules.

A training module 440 may be arranged to train the estimation modelbased on a correspondence relationship and by following a trainingprinciple. The correspondence relationship may be correspondence amongthe preview image, the exposure parameter value, and the image shootingparameter value. The training principle may be approaching the imageshooting parameter value estimated by the estimation model towards astored image shooting parameter value corresponding to the preview imageand the exposure parameter.

Alternatively, as shown in FIG. 5, the apparatus may further includefollowing modules.

A second acquisition module 450 may be arranged to allow the imageshooting component to shoot a predefined number of preview images.

A first determination module 460 may be arranged to determine a targetpreview image from the acquired predefined number of preview images, andmay be arranged to acquire a target exposure parameter corresponding tothe target preview image.

A second determination module 470 may be arranged to select a predefinedsynthesis number of preview images including the target preview imagefrom the predefined number of preview images to obtain a set of targetpreview images corresponding to the predefined synthesis number, and maybe arranged to perform an image-synthesis process to the set of targetpreview images to obtain a synthesized image corresponding to thepredefined synthesis number. A plurality of predefined synthesis numbersmay be stored in the terminal device, a plurality of sets of targetpreview images may be obtained correspondingly, and a plurality ofsynthesized images may be obtained correspondingly.

A third determination module 480 may be arranged to determine asynthesized image having optimal image quality from the plurality ofsynthesized images corresponding to the plurality of predefinedsynthesis numbers to be a target synthesized image, and may be arrangedto determine a target predefined synthesis number corresponding to thetarget synthesized image to be the target image shooting parameter.

A storage module 490 may be arranged to store the target preview image,the target exposure parameter value, and the target image shootingparameter value into the training set correspondingly.

Alternatively, the second determination module 470 may be arranged toperform following operations.

Image synthesis may be performed to the set of target preview imagesbased on a plurality of predefined performance parameter of the terminaldevice respectively, and the synthesized images corresponding to thepredefined synthesis number and each of the plurality of performanceparameters of the terminal device may be obtained.

The third determination module 480 may further be arranged to performfollowing operations.

The target synthesized image having optimal image quality may bedetermined from the plurality of synthesized images corresponding to theplurality of predefined synthesis numbers and the plurality ofpredefined performance parameter values of the terminal device. Thetarget predefined synthesis number and the target performance parametervalue of the terminal device corresponding to the target synthesizedimage may be determined to be the target image-shooting parameter value.

Alternatively, as shown in FIG. 5, the apparatus may further includefollowing modules.

A recording module 4100 may be arranged to record power consumption forobtaining each of the plurality of synthesized images corresponding toeach of the plurality of predefined synthesis numbers.

The third determination module 480 may be arranged to perform followingoperations.

A synthesized image having comprehensively optimal image quality andpower consumption may be determined from the plurality of synthesizedimages to be the target synthesized image, and the target predefinedsynthesis number corresponding to the target synthesized image may bedetermined to be the target image shooting parameter.

Alternatively, the image shooting parameter may include the targetpredefined synthesis number, and the execution module 430 may bearranged to perform following operations.

The set of target preview images may be obtained based on the targetpredefined synthesis number, and image synthesis may be performed to theset of target preview images to obtain the target synthesized image.

Alternatively, the image shooting parameter may include the targetpredefined performance parameter of the terminal device, and theexecution module 430 may be arranged to perform following operations.

Image synthesis may be performed to the set of target preview images,based on the target predefined performance parameter of the terminaldevice, to obtain the target synthesized image.

Alternatively, as shown in FIG. 5, the apparatus may further includefollowing modules.

A detection module 4110 may be arranged to detect whether a present timestamp is within a predefined time range.

The first acquisition module 410 may be arranged to perform the previewimage shooting process via the image shooting component, in response tothe present time stamp being within the predefined time range, and maybe arranged to acquire the exposure parameter corresponding to thepreview image.

In the embodiment of the present disclosure, when the terminal device isin the pending state for image shooting, the preview image may beacquired via the image shooting component, and the exposure parametervalue corresponding to the preview image may be acquired. The imageshooting parameter value of the present night scene may be estimatedbased on the preview image and the estimation model. The estimationmodel may be trained in advance by taking the image data parameter, theexposure parameter, and the image shooting parameter as variables. Theimage shooting parameter may include the number of images for synthesis.In response to receiving an image shooting instruction, animage-shooting process may be performed based on the estimated imageshooting parameter value. In such a way, when the user tends to shoot animage in a night scene, the terminal device may automatically calculatethe number of images for synthesis for the present night scene. Further,the acquired image may be processed based on the number of images forsynthesis, and the user may not need to manually activate the functionof image synthesis for night scenes, the efficiency of image shootingmay be improved.

To be noted that, when the image shooting apparatus provided by theabove-mentioned embodiment is shooting images, the apparatus provided inexamples may be illustrated according to each functional module. In anapplication, functions of the apparatus may be achieved by beingassigned to various functional modules, that is, an internal structureof the terminal device may be divided into various functional modules toachieve all of or a part of the above-mentioned functions. In addition,the apparatus for image shooting provided in the above-mentionedembodiments and the method for image shooting provided in theembodiments share a same invention concept. A process of achieving thefunctions may refer to the method embodiments, and will not berepeatedly described herein.

As shown in FIG. 6 and FIG. 7, a structural diagram of the terminaldevice 100 according to an embodiment of the present disclosure isprovided. The terminal device 100 may be a mobile phone, a tabletcomputer, a laptop, an electronic book, and the like. The terminaldevice 100 of the present disclosure may include one or more of: aprocessor 110, a non-transitory memory 120, and a touch screen 130.

The processor 110 may include one or more processing cores. Theprocessor 110 may be arranged to connect each internal component of theterminal device 100 via various interfaces and lines, and may bearranged to execute various functions of the terminal device 100 andprocess data by running or executing an instruction, a program, a codeset, or an instruction set stored in the non-transitory memory 120 andby invoking data stored in the non-transitory memory 120. Alternatively,the processor 110 may be realized by at least one of: a hardware form ofdigital signal processing (DSP), a hardware form of field-programmablegate array (FPGA), and a hardware form of programmable logic array(PLA). The processor 110 may integrate at least one of: a centralprocessing unit (CPU), a graphics processing unit (GPU), and a modem.The CPU may substantially be arranged to process an operating system, auser interface, an application, and the like. The GPU may be arranged torender and draw content to be displayed by the touch screen 130. Themodem may be arranged to process wireless communication. It may beunderstood that, the modem may not be integrated into the processor 110,but may be presented as a chip instead.

The non-transitory memory 120 may include a random access memory (RAM)or a read-only memory (ROM). Alternatively, the non-transitory memory120 may include a non-transitory computer-readable storage medium. Thenon-transitory memory 120 may be arranged to store the instruction, theprogram, the code, the code set, or the instruction set. Thenon-transitory memory 120 may include a program storage area and a datastorage area. An instruction for achieving the operation system, aninstruction for achieving at least one function (such as touching, audioplaying, image playing, and the like), and an instruction for performingthe method in each embodiment may be stored in the program storage area.Data generated based on usage of the terminal device 100 (such as audiodata and contact information) may be stored in the data storage area.

Taking the Android operating system as an example, the program and thedata stored in the non-transitory memory 120 may be shown in FIG. 6. Thenon-transitory memory 120 may be arranged to store a Linux® kernel layer220, a library and Android runtime level 240, an application frameworklayer 260, and an application layer 280. The Linux kernel layer 220 mayprovide underlying drives for various hardware of the terminal device100, such as a drive for displaying, a drive for an audio, a drive for acamera, a drive for Bluetooth®, a drive for Wireless-Fidelity (Wi-Fi),power management, and the like. The library and Android® runtime level240 may provide a feature support for the Android system via some C/C++libraries. For example, a SQLite library may provide a support fordatabase, an OpenGL/ES library may provide a support forthree-dimensional drawing, and a Webkit library may provide a supportfor a browser kernel. The library and Android runtime level 240 mayfurther include an Android Runtime, and the Android Runtime may providesome core libraries allowing a developer to program Android applicationsthrough Java. The application framework layer 260 may provide variousapplication programming interfaces (API) for generating applications,and the developer may generate their own applications, such as activitymanagement, window management, view management, notice management, acontent provider, package management, call management, resourcemanagement, and positioning management, through the various APIs. Atleast one program may run in the application layer 280, and the at leastone program may be originally installed with the system, such as acontact program, a message program, a time program, a cameraapplication, and the like; alternatively, the at least one program maybe developed by a third developer, such as a real-time communicationprogram, an image retouching program, and the like.

Taking an iPhone operating system (iOS) as an example, the program andthe data stored in the non-transitory memory 120 may be shown in FIG. 9.The iOS may include: a core OS layer 320, a core service layer 340, amedia layer 360, and a cocoa touch layer 380. The core OS layer 320 mayinclude an OS kernel, a driving program, and an underlying programframework. Functions provided by the underlying program framework may besimilar to functions of hardware, and an application framework in thecore service layer 340 may use the underlying program framework. Thecore service layer 340 may provide systemic services and/or the programframework, such as a foundation framework, an account framework, anadvertisement framework, a data storage framework, a network connectionframework, a geographic location framework, a moving framework, and thelike, for an application. The media layer 360 may provide anaudio-visual related interface for the application, such as agraphics-related and image-related interface, an audiotechnology-related interface, a video technology-related interface, anairplay interface of audio-video transmission, and the like. The cocoatouch layer 380 may provide various frameworks related to various commoninterfaces for program development, such as a local notificationservice, a remote notification service, an advertisement framework, agame tool framework, a user interface (UI) framework, a UI kitframework, a map framework, and the like, and may manage interactivetouching operations performed by a user on the terminal device 100.

As shown in FIG. 7, the frameworks related to most of the applicationsmay include, but may not be limited to, the foundation framework in thecore service layer 340 and the UI kit framework in the cocoa touch layer380. The foundation framework may provide various foundational objecttypes and data types, and may provide foundational systemic service forall applications, but may not be related to the UI. The UI kit frameworkmay provide a foundational UI class library for generating a touchableUI. Applications of iOS may provide the UI based on the UI kitframework. Therefore, the UI kit framework may provide foundationalframeworks for the applications to generate the UI, to draw, to processinteractive events with the user, to respond to postures, and the like.

The touch screen 130 may be arranged to receive a touch operationperformed on or near the touch screen 130 by a finger, a touch pencil,or any appropriate object, and may be arranged to display the userinterface for each application. The touch screen 130 may commonly bearranged on a front plate of the terminal device 100. The touch screen130 may be provided as a full screen, a curved screen, or an anomalousscreen. The touch screen 130 may also be provided as a curved fullscreen, or a curved anomalous screen, and will not be limited by thepresent disclosure.

A full screen may be provided.

For the full screen, an area occupied by the touch screen 130 may begreater than a threshold value (such as 80%, or 90%, or 95%). The areaoccupied by the touch screen 130 may be calculated as: (an area of thetouch screen 130/an area of the front plate of the terminal device100)*100%. The area occupied by the touch screen 130 may also becalculated as: (an area of a display region defined by the touch screen130/the area of the front plate of the terminal device 100)*100%. Thearea occupied by the touch screen 130 may also be calculated as: (adiagonal of the touch screen 130/a diagonal of the front plate of theterminal device 100)*100%. According to an example provided in FIG. 8,almost the entire front plate of the terminal device 100 is covered bythe touch screen 130. An entirety of the front plate 40 of the terminaldevice 100, excluding an edge defined by a middle frame, may be coveredby the touch screen 130. Four angles of the touch screen 130 may beright angles or rounded-angles.

For the full screen, at least one of front-plate components may beintegrated within or under the touch screen 130. Alternatively, the atleast one of front-plate components may include: a camera, a fingerprintsensor, a proximity light sensor, a distance sensor, and the like. Insome embodiments, other components arranged on the front plate of aconventional terminal device may be integrated into an entire region ora part of the entire region of the touch screen 130. For example, thephotosensitive element of the camera may be divided into variousphotosensitive pixels, and each of the various photosensitive pixels maybe integrated into a black region of each display pixel of the touchscreen 130. As the at least one of front-plate components is integratedwithin the touch screen 130, the area occupied by the full screen may beimproved.

In other embodiments, the at least one front-plate component arrangedwith the conventional terminal device may be arranged on a side of aback of the terminal device 100. For example, an ultrasound fingerprintsensor may be arranged below the touch screen 130, a bone conductionearpiece may be arranged inside the terminal device 100, and the cameramay be arranged on the side of the terminal device 100 or may bearranged as pluggable.

In some available embodiments, when the terminal device 100 is arrangedwith the full screen, one side, two sides (such as a left side and aright side), or four sides (such as a top side, a bottom side, a leftside, and a right side) of the middle frame of the terminal device 100may be arranged with an edged touch sensor (i.e., a touch sensorarranged on an edge of the terminal device 100). The edged touch sensormay be arranged to detect at least one of the touch operation, a clickoperation, a press operation, and a sliding operation performed by theuser. The edged touch sensor may be any one of a touch sensor, a thermalsensor, and a pressure sensor. The user may perform operations on theedged touch sensor to manipulate the applications and processes of theterminal device 100.

A curved screen may be arranged.

For a curved screen, a screen region of the touch screen 130 may not bein a planar. Typically, the curved screen may at least have a crosssection. The cross section may be curved, a projection of the curvedscreen along a direction perpendicular the cross section may be a flatplane, and the curved cross section may be U-shaped. Alternatively, atleast one side edge of the curved screen may be curved. Alternatively,at least one side edge of the curved touch screen 130 may extend tocover the middle frame of the terminal device 100. In such a way, themiddle frame, which may initially be unable to display and unable to beresponsive to the touch operation, may be covered by the curved touchscreen 130 to form a display region and/or a region able to receiveoperations, such that the area occupied by the curved screen may beimproved. Alternatively, as shown in FIG. 9, the left side and the rightside 42 of the touch screen may be curved. Alternatively, the top sideand the bottom side of the touch screen may be curved. Alternatively,the top side, the bottom side, the left side, and the right side of thetouch screen may be curved. In an available embodiment, the touch screenmay be made of flexible material.

An anomalous screen may be arranged.

For an anomalous screen, a shape of the touch screen may be irregular,and an irregular shape may not include a rectangle or a roundedrectangle. Alternatively, the anomalous screen may refer to arectangular or a rounded rectangular touch screen 130 having aprotrusion, a notch, and/or defining a hole. Alternatively, theprotrusion, the notch, and/or the hole may be arranged or defined on theedge and/or in a center of the touch screen 130. The protrusion, thenotch, and/or the hole may be arranged or defined at middle or two endsof the edge. The protrusion, the notch, and/or the hole may be arrangedor defined in at least one of a top region, a left top region, a leftregion, a left bottom region, a bottom region, a right bottom region, aright region, and a right top region. When the protrusion, the notch,and/or the hole is arranged or defined in various regions, theprotrusion, the notch, and/or the hole may be clustered or spaced apartfrom each other, distributed symmetrically or asymmetrically.Alternatively, the number of the protrusion, the number of the notch,and the number of the hole may not be limited by the present disclosure.

As the anomalous screen may cover an upper region and a bottom region ofthe touch screen, allowing the upper and bottom regions to displayand/or to receive operations, the area occupied of the front plate ofthe terminal device by the touch screen may be increased, and anoccupation ratio of the anomalous region may be greater. In someembodiments, the notch and/or the hole may be defined to receive the atleast one front-plate component, and the at least one front-platecomponent may include at least one of the camera, the fingerprintsensor, the proximity light sensor, the distance sensor, the ear piece,an ambient light sensor, and a physical button.

For examples, the notch may be defined on one or more edges. The notchmay be a semicircular notch, a rectangular notch with a right angle, arounded rectangular notch, or an irregular notch. According to examplesshown in FIG. 10, the anomalous screen may refer to a touch screen 130defining the semicircular notch 43 at a middle of the top side, and thenotch 43 may be defined to receive the at least one front-platecomponent, including the camera, the distance sensor (also referred as aproximity sensor), the ear piece, the ambient light sensor. As shown inFIG. 11, the anomalous screen may refer to a touch screen 130 definingthe semicircular notch 44 at a middle of the bottom side, and thesemicircular notch 44 may be defined to receive at least one of thephysical button, the fingerprint sensor, and a microphone. As shown inFIG. 12, the anomalous screen may refer to a touch screen 130 defining ahalf-elliptical notch 45 at a middle of the bottom side and defininganother half-elliptical notch on the front plate of the terminal device100. A side wall of the half-elliptical notch 45 and a side wall of theanother half-elliptical notch may be combined to form an ellipticalregion to receive the physical button or the fingerprint sensor. Asshown in FIG. 13, the anomalous screen may refer to a touch screen 130defining a hole 45 at a top, and the hole 45 may be defined to receivethe at least one front-plate components, including the camera, thedistance sensor, the earpiece, the ambient light sensor.

Further, it may be understood to any one of skill in the art that, astructure of the terminal device 100 as shown in the above-mentionedfigures may not limit the terminal device 100. The terminal device maybe arranged with more or fewer components compared to the componentsshown in the figures, or arranged with combination of some components,or the components may be distributed in a different manner. For example,the terminal device 100 may further include a radio frequency circuit,an input unit, a sensor, an audio circuit, a Wi-Fi module, a power, aBluetooth module, and the like, which may not be illustrated in detailsherein.

In the embodiments of the present disclosure, when the terminal deviceis in the pending state for image shooting, the image shooting componentmay acquire the preview image and the exposure parameter correspondingto the preview image. Based on the preview image and the estimationmodel, the image shooting parameter of the present night scene may beestimated, wherein the estimation model may be trained in advance bytaking the image data parameter, the exposure parameter, and the imageshooting parameter as variables, and the image shooting parameter mainclude number of images for synthesis. In response to receiving theimage shooting instruction, an image-shooting process may be performedbased on the estimated image shooting parameter. In such away, when theuser is intending to shoot an image at a night scene, the terminaldevice may automatically calculate the number of images for synthesisfor the present night scene, and therefore, the image-shooting processmay be performed based on the number of images for synthesis, and theuser may not be required to manually activate the function for imageshooting at night scenes, improving the efficiency of image shooting.

Any one of skill in the art may understand that all of or a part ofoperations of the above-mentioned may be achieved through hardware orachieved by programs instructing related hardware. The program may bestored in a non-transitory computer-readable storage medium, and thestorage medium may be a ROM, a disc or an optical disc.

The above-mentioned embodiments are preferred embodiments of the presentdisclosure, and shall not limit the present disclosure. Anymodification, any equivalent replacement, any improvement within thespirit and the principle of the present disclosure shall be within thescope of the present disclosure.

What is claimed is:
 1. A method of image shooting, performed by aterminal device, comprising: shooting preview images via an imageshooting component and acquiring values of an exposure parametercorresponding to the preview images, when the terminal device is in apending state for image shooting; estimating a value of animage-shooting parameter of a present night scene via an estimationmodel according to the preview images and the values of the exposureparameter corresponding to the preview images, wherein the estimationmodel is trained by taking an image data parameter, the exposureparameter, and the image shooting parameter as variables; and the imageshooting parameter comprises an image-synthesizing number, which is anumber of preview images required to obtain a target synthesized-image;and performing an image-shooting process according to the estimatedvalue of the image-shooting parameter, in response to an image-shootinginstruction, to obtain the target synthesized-image.
 2. The methodaccording to claim 1, wherein the image-shooting parameter furthercomprises a performance parameter of the terminal device.
 3. The methodaccording to claim 1, further comprising: before the estimating thevalue of the image-shooting parameter of the present night scene via theestimation model according to the preview images and the values of theexposure parameter corresponding to the preview images, training theestimation model based on a pre-stored correspondence relationship amongtraining preview images, values of a training exposure parameter, andvalues of a training image-shooting parameter in a training set, and byfollowing a pre-stored training principle of values of theimage-shooting parameter estimated by the estimation model, beingapproached towards values of the training image-shooting parametercorresponding to the training preview images and the values of thetraining exposure parameter, to achieve the estimation model.
 4. Themethod according to claim 3, further comprising: shooting a predefinednumber of preview images via the image shooting component; determining atarget preview image among the predefined number of preview images andacquiring a target value of the exposure parameter corresponding to thetarget preview image; selecting a predefined synthesis number of previewimages comprising the target preview image from the predefined number ofpreview images to obtain a set of target preview images corresponding tothe predefined synthesis number, wherein a plurality of predefinedsynthesis numbers are pre-stored in the terminal device, and a pluralityof sets of target preview images corresponding to the plurality ofpredefined synthesis numbers are obtained according to each of theplurality of predefined synthesis numbers; performing an image-synthesisprocess for each of the plurality of sets of target preview images toobtain a synthesized image corresponding to the predefined synthesisnumber, such that a plurality of synthesized images corresponding to theplurality of predefined synthesis numbers are obtained; determining asynthesized image having optimal image quality from the plurality ofsynthesized images corresponding to the plurality of predefinedsynthesis numbers to be the target synthesized-image, and determining atarget predefined synthesis number corresponding to the targetsynthesized-image to be a target value of the image-shooting parameter;and storing the target preview image, the target value of the exposureparameter, and the target value of the image-shooting parameter into thetraining set correspondingly.
 5. The method according to claim 4,wherein the performing the image-synthesis process for each of theplurality of sets of target preview images to obtain the synthesizedimage corresponding to the predefined synthesis number comprises:performing the image-synthesis process to the set of target previewimages based on each of a plurality of values of a performance parameterof the terminal device to obtain a plurality of synthesized imagescorresponding to the predefined synthesis number and each of theplurality of values of the performance parameter of the terminal device;and the determining the synthesized image having optimal image qualityfrom the plurality of synthesized images corresponding to the pluralityof predefined synthesis numbers to be the target synthesized-image, anddetermining the target predefined synthesis number corresponding to thetarget synthesized-image to be the target value of the image-shootingparameter, comprises: determining the target synthesized image havingthe optimal image quality from the obtained plurality of synthesizedimages, wherein each of the plurality of synthesized images correspondsto each of the plurality of predefined synthesis numbers and each of theplurality of values of the performance parameter, and determining thetarget predefined synthesis number and a target predefined value of theperformance parameter of the terminal device corresponding to the targetsynthesized image to be the target value of the image-shootingparameter.
 6. The method according to claim 4, further comprising:recording power consumption for obtaining the synthesized imagecorresponding to the predefined synthesis number; and wherein thedetermining the synthesized image having optimal image quality from theplurality of synthesized images corresponding to the plurality ofpredefined synthesis numbers to be the target synthesized-image, anddetermining the target predefined synthesis number corresponding to thetarget synthesized-image to be the target value of the image-shootingparameter, comprises: determining a synthesized image havingcomprehensively optimal image quality and power consumption among theplurality of synthesized images corresponding to the plurality ofpredefined synthesis numbers to be the target synthesized-image, anddetermining the target predefined synthesis number to be the targetvalue of the image-shooting parameter.
 7. The method according to claim4, wherein the performing the image-shooting process according to theestimated value of the image-shooting parameter, in response to theimage-shooting instruction, to obtain the target synthesized-imagecomprises: acquiring a set of target preview images based on the targetpredefined synthesis number; and performing the image-synthesis processto the set of target preview images to obtain the targetsynthesized-image.
 8. The method according to claim 7, wherein the valueof the image-shooting parameter comprises a target value of theperformance parameter of the terminal device, and the performing theimage-synthesis process to the set of target preview images to obtainthe target synthesized-image comprises: performing the image-synthesisprocess to the set of target preview images based on the target value ofthe performance parameter of the terminal device to obtain the targetsynthesized-image.
 9. The method according to claim 1, furthercomprising: before the shooting preview images via an image shootingcomponent and acquiring values of an exposure parameter corresponding tothe preview images: detecting whether a present time stamp is within apredefined time range; and performing, in response to the present timestamp being within the predefined time range, the shooting previewimages via an image shooting component and acquiring values of anexposure parameter corresponding to the preview images.
 10. A terminaldevice, comprising a processor and a non-transitory memory, wherein thenon-transitory memory is arranged to store at least one instruction, atleast one program, a code set, or an instruction set, and the at leastone instruction, the at least one program, the code set, or theinstruction set are loaded and executed by the processor to performoperations of: shooting, via an image shooting component, preview imagesand acquiring values of an exposure parameter corresponding to thepreview images, when the terminal device is in a pending state for imageshooting; estimating, via an estimation model, a value of animage-shooting parameter of a present night scene according to thepreview images and the values of the exposure parameter corresponding tothe preview images, wherein the estimation model is trained by taking animage data parameter, the exposure parameter, and the image shootingparameter as variables; and the image shooting parameter comprises animage-synthesizing number, which is a number of preview images requiredto obtain a target synthesized-image; and performing an image-shootingprocess according to the estimated value of the image-shootingparameter, in response to an image-shooting instruction, to obtain thetarget synthesized-image.
 11. The terminal device according to claim 10,wherein the image shooting parameter further comprises a performanceparameter of the terminal device.
 12. The terminal device according toclaim 10, wherein the at least one instruction, the at least oneprogram, the code set, or the instruction set are further loaded andexecuted by the processor to perform operations of: training theestimation model based on a pre-stored correspondence relationship amongtraining preview images, values of a training exposure parameter, andvalues of a training image-shooting parameter in a training set, and byfollowing a pre-stored training principle of values of theimage-shooting parameter estimated by the estimation model, beingapproached towards values of the training image-shooting parametercorresponding to the training preview images and the values of thetraining exposure parameter, to achieve the estimation model.
 13. Theterminal device according to claim 12, wherein the at least oneinstruction, the at least one program, the code set, or the instructionset are further loaded and executed by the processor to performoperations of: shooting, via the image shooting component, a predefinednumber of preview images; determining a target preview image from thepredefined number of preview images and acquire a target value of theexposure parameter corresponding to the target preview image; selectinga predefined synthesis number of preview images comprising the targetpreview image from the predefined number of preview images to obtain aset of target preview images corresponding to the predefined synthesisnumber; and performing an image-synthesis process to the set of targetpreview images to obtain a synthesized image corresponding to thepredefined synthesis number, wherein a plurality of predefined synthesisnumbers are stored in the terminal device, a plurality of sets of targetpreview images corresponding to the plurality of predefined synthesisnumbers are obtained, and a plurality of synthesized imagescorresponding to the plurality of predefined synthesis numbers areobtained; determining a synthesized image having optimal image qualityfrom the plurality of synthesized images corresponding to the pluralityof predefined synthesis numbers to be the target synthesized-image, anddetermining a target predefined synthesis number corresponding to thetarget synthesized-image to be a target value of the image shootingparameter; and storing the target preview image, the target value of theexposure parameter, the target value of the image shooting parameterinto the training set correspondingly.
 14. The terminal device accordingto claim 13, wherein the at least one instruction, the at least oneprogram, the code set, or the instruction set are further loaded andexecuted by the processor to perform operations of: performing theimage-synthesis process to the set of target preview images, based oneach of a plurality of predefined values of a performance parameter ofthe terminal device, to obtain a synthesized image corresponding to thepredefined synthesis number and each of the plurality of predefinedvalues of the performance parameter of the terminal device, wherein aplurality of synthesized images are obtained corresponding to theplurality of predefined synthesis numbers and the plurality ofpredefined values of the performance parameter of the terminal device;and determining the target synthesized-image having the optimal imagequality from the obtained plurality of synthesized images correspondingto the plurality of predefined synthesis numbers and the plurality ofpredefined values of the performance parameter of the terminal device,and determining the target predefined synthesis number and a targetpredefined value of the performance parameter of the terminal devicecorresponding to the target synthesized-image to be target values of theimage shooting parameter.
 15. The terminal device according to claim 13,wherein the at least one instruction, the at least one program, the codeset, or the instruction set are further loaded and executed by theprocessor to perform operations of: recording power consumption forobtaining each of the plurality of synthesized images corresponding toeach of the plurality of predefined synthesis numbers; and determining asynthesized image having comprehensively optimal image quality and thepower consumption from the plurality of synthesized images correspondingto the plurality of predefined synthesis numbers to be the targetsynthesized-image, and determining the target predefined synthesisnumber corresponding to the target synthesized-image to be the targetvalue of the image shooting parameter.
 16. The terminal device accordingto claim 15, wherein the value of the image shooting parameter comprisesthe target predefined synthesis number, and the at least oneinstruction, the at least one program, the code set, or the instructionset are further loaded and executed by the processor to performoperations of: obtaining the set of preview images based on the targetpredefined synthesis number, and performing the image-synthesis processto the set of target preview images to obtain the targetsynthesized-image.
 17. The terminal device according to claim 16,wherein the value of the image shooting parameter comprises a targetvalue of the performance parameter of the terminal device, and the atleast one instruction, the at least one program, the code set, or theinstruction set are further loaded and executed by the processor toperform operations of: performing the image-synthesis process to the setof target preview images, based on the target value of the performanceparameter of the terminal device, to obtain the targetsynthesized-image.
 18. The terminal device according to claim 15,wherein the at least one instruction, the at least one program, the codeset, or the instruction set are further loaded and executed by theprocessor to perform operations of: detecting whether a present timestamp is within a predefined time range; and shooting, via the imageshooting component, the preview images and acquiring the values of theexposure parameter corresponding to the preview images, in response tothe present time stamp being within the predefined time range.
 19. Anon-transitory computer-readable storage medium, comprising at least oneinstruction, at least one program, a code set, or an instruction setstored in, wherein the at least one instruction, the at least oneprogram, the code set, or the instruction set are capable of beingloaded and executed by a processor to perform operations of: shootingpreview images and acquiring values of an exposure parametercorresponding to the preview images; estimating a value of animage-shooting parameter of a present night scene via an estimationmodel based on the preview images and the values of the exposureparameter corresponding to the preview images, wherein the estimationmodel is trained by taking an image data parameter, the exposureparameter, and the image shooting parameter as variables, the imageshooting parameter comprises an image-synthesizing number, which is anumber of preview images required to obtain a target synthesized-image;and performing an image-shooting process according to the estimatedvalue of the image-shooting parameter, in response to an image-shootinginstruction, to obtain the target synthesized-image.
 20. Thenon-transitory computer-readable storage medium according to claim 19,wherein the at least one instruction, the at least one program, the codeset, or the instruction set are further capable of being loaded andexecuted by a processor to perform operations of: training theestimation model based on a pre-stored correspondence relationship amongtraining preview images, values of a training exposure parameter, andvalues of a training image-shooting parameter in a training set, and byfollowing a pre-stored training principle of values of theimage-shooting parameter estimated by the estimation model, beingapproached towards values of the training image-shooting parametercorresponding to the training preview images and the values of thetraining exposure parameter, to achieve the estimation model.